Skip to content

Fix needless_range_loop bad suggestion #3757

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Feb 12, 2019
Merged

Fix needless_range_loop bad suggestion #3757

merged 1 commit into from Feb 12, 2019

Conversation

ghost
Copy link

@ghost ghost commented Feb 11, 2019

Detect if the index variable is used inside a closure.

Fixes #2542

Detect if the index variable is used inside a closure.

Fixes #2542
@oli-obk
Copy link
Contributor

oli-obk commented Feb 12, 2019

@bors r+

@bors
Copy link
Contributor

bors commented Feb 12, 2019

📌 Commit 217965e has been approved by oli-obk

@bors
Copy link
Contributor

bors commented Feb 12, 2019

⌛ Testing commit 217965e with merge ed32876...

bors added a commit that referenced this pull request Feb 12, 2019
Fix `needless_range_loop` bad suggestion

Detect if the index variable is used inside a closure.

Fixes #2542
@bors
Copy link
Contributor

bors commented Feb 12, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: oli-obk
Pushing ed32876 to master...

@bors bors merged commit 217965e into rust-lang:master Feb 12, 2019
@ghost ghost deleted the fix-2542 branch February 24, 2019 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants